/*
** xprintf.c
**
** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
** Redistributed by permission.
*/

#include <stdio.h>
#include <stdarg.h>
#include "pictor.h"

/*
** Formatting for print routines.
*/
void xprintf(void (*function)(),char *arg_list,...)
{
	static char buffer[133];
	va_list arg_ptr;
	char *format;

	va_start(arg_ptr,arg_list);
	format = arg_list;
	vsprintf(buffer,format,arg_ptr);
	function(buffer);

} /* xprintf */
